﻿using System;
using System.Collections;

namespace Huirui.Cavan.Domain.MainBoundedContext.SystemModule
{
    #region UserRole

    /// <summary>
    /// UserRole object for NHibernate mapped table 'UserRole'.
    /// </summary>
    [Serializable]
    public class UserRole
    {
        #region Member Variables

        protected int _id;
        protected Role _role;
        protected UserAccount _userAccount;

        #endregion

        #region Constructors

        public UserRole() { }

        public UserRole(Role role, UserAccount userAccount)
        {
            this._role = role;
            this._userAccount = userAccount;
        }

        #endregion

        #region Public Properties

        public virtual int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public virtual Role Role
        {
            get { return _role; }
            set { _role = value; }
        }

        public virtual UserAccount UserAccount
        {
            get { return _userAccount; }
            set { _userAccount = value; }
        }



        #endregion
    }
    #endregion
}